Skip to content

feat: UI/UX enhancements and Sentry link fixes#2

Open
Kush52662 wants to merge 5 commits intomainfrom
feature/ui-ux-enhancements
Open

feat: UI/UX enhancements and Sentry link fixes#2
Kush52662 wants to merge 5 commits intomainfrom
feature/ui-ux-enhancements

Conversation

@Kush52662
Copy link
Owner

This PR introduces two major improvements for the UAT demo: \n\n1. High-Fidelity Chevron Pipeline: Replaced the text-based 'pending' indicators with a modern, chevron-style progress stepper in the session view. This matches the professional look required for the demo. \n2. Fixed Sentry Event Links: Updated the 'View Full Trace' links in the Analysis tab to point directly to the specific event in the correct Sentry organization ('securabbit'), rather than a general search feed.

@coderabbitai
Copy link

coderabbitai bot commented Jan 25, 2026

Important

Review skipped

Auto reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Note

Other AI code review bot(s) detected

CodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review.


Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6843c2e4fc

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

app.py Outdated
# Updated to point directly to the specific event in the securabbit organization
update_data = {
"sentry_link": f"https://sentry.io/organizations/daytona-hacksprint/issues/?query={event_id}",
"sentry_link": f"https://securabbit.sentry.io/projects/python/events/{event_id}/",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Avoid hard-coding the Sentry project slug in event links

The new direct-event URL hard-codes the project slug to python, which will 404 for any deployment whose SENTRY_DSN points at a different project. The previous search link worked across projects because it only needed the org and event id. Unless every environment uses a project slug of python, this change will produce broken links for valid events; consider deriving the project slug from config/DSN or reverting to the org-wide issues search URL.

Useful? React with 👍 / 👎.

# Updated to the canonical Sentry URL format with org slug in path to avoid broken links
update_data = {
"sentry_link": f"https://sentry.io/organizations/daytona-hacksprint/issues/?query={event_id}",
"sentry_link": f"https://sentry.io/organizations/securabbit/projects/python/events/{event_id}/",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: The Sentry event URL is constructed with a hardcoded project slug "python", which may not match the actual project configured via the SENTRY_DSN, leading to broken links.
Severity: MEDIUM

Suggested Fix

Avoid hardcoding the project slug. Instead, either extract the project slug from the SENTRY_DSN at runtime or introduce a new environment variable to configure the Sentry project slug explicitly. This ensures the generated URL correctly points to the event in the configured Sentry project.

Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent.
Verify if this is a real issue. If it is, propose a fix; if not, explain why it's not
valid.

Location: app.py#L150

Potential issue: The code generates a Sentry event URL using a hardcoded project slug,
`"python"`. However, the Sentry project is configured dynamically at runtime via the
`SENTRY_DSN` environment variable. There is no guarantee that the actual project slug
will be `"python"`. If the configured project has a different slug, the generated link
will result in a 404 error when a user clicks 'View Full Trace in Sentry'. This breaks a
key debugging feature in the user interface, preventing users from accessing the
detailed Sentry event for a security violation.

Did we get this right? 👍 / 👎 to inform future reviews.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant